Skip to content

feat: add probe readiness devtools command#977

Open
piotr-iohk wants to merge 2 commits into
masterfrom
feat/probe-readiness-devtools
Open

feat: add probe readiness devtools command#977
piotr-iohk wants to merge 2 commits into
masterfrom
feat/probe-readiness-devtools

Conversation

@piotr-iohk
Copy link
Copy Markdown
Collaborator

@piotr-iohk piotr-iohk commented May 29, 2026

Part of synonymdev/bitkit-nightly#17

This PR adds a debug-only probeReadiness devtools command so the mainnet Lightning probe E2E tests can inspect the wallet's routing readiness directly, instead of relying on a fixed stabilization delay.

Description

  • Adds LightningRepo.probeReadiness() returning a ProbeReadiness snapshot: node running, lifecycle, peers / connected peers, channels / ready / usable, outbound capacity sats, network graph node and channel counts, latest RGS sync timestamp, and sync health, plus a derived ready flag.
  • Exposes it via the debug DevToolsProvider as the probeReadiness command (ADB content call), returning a serialized result.
  • Adds unit tests covering the ready and not-ready paths.

Debug/test-only (debug source set); no impact on release builds.

Preview

N/A — debug devtools command, no UI.

QA Notes

Manual Tests

  • 1. Install a mainnet debug build → adb shell content call --uri content://to.bitkit.devtools --method probeReadiness: returns JSON with ready, peers, channels, and graph counts.
  • 2. Funded wallet with synced graph → call again: ready=true, usableChannels>0, graphChannelCount in the tens of thousands.

Automated Checks

  • Unit tests added: cover probeReadiness() ready and not-ready paths in app/src/test/.../LightningRepoTest.kt.
  • CI: standard compile, unit test, and detekt checks run by the PR bot.

Made with Cursor

@piotr-iohk piotr-iohk self-assigned this May 29, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0dc074db7f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src/main/java/to/bitkit/repositories/LightningRepo.kt
Co-authored-by: Cursor <cursoragent@cursor.com>
@piotr-iohk piotr-iohk requested a review from ovitrif May 29, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant